.banner {

  swiper-item{
    image{
      width:100%;
    }
  }

}

.tuijian{
  .title{
    text-align: center;
    image{

    }
  }
}

.product-list{

  .item{
    width:50%;
    padding:20rpx;
    box-sizing: border-box;
    float:left;
    image{
      width:100%;
      border-top-left-radius: 20rpx;
      border-top-right-radius: 20rpx;
    }

    .name{
      -webkit-line-clamp:2;
      display:-webkit-box;
      -webkit-box-orient: vertical;
      text-overflow: ellipsis;
      overflow: hidden;
      font-weight:bold;
      font-size: 28rpx;
      min-height: 80rpx; // 保持两行高度
    }
    .sale-number{

      color:#777;
      font-size:26rpx;
      margin-top:10rpx;
    }
    .old-price{
      margin-right:20rpx;
    }
    .price-buy{

      display: flex;
      font-size:28rpx;
      line-height:1.5;
      margin-top:10rpx;

      .price{

        flex:1;
        width:50%;

        .text{
          //display: inline-block;
          font-weight: bold;
          color:#f00;
        }
      }

      .buy{

        flex:1;
        width:50%;

        text-align:right;



        .text{
          display: inline-block;
          background-color:#f00;
          border-radius: 40rpx;
          padding:0 20rpx;
          color:#fff;

        }

      }
    }

  }
}